{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Instr =  0 ( 0 )\n",
      "[ 518,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 106,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  1 ( 1 )\n",
      "[ 101,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 412,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  2 ( 2 )\n",
      "[ 513,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 103,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  3 ( 1 )\n",
      "[ 110,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 410,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  4 ( 2 )\n",
      "[ 520,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 102,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  5 ( 1 )\n",
      "[ 189,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 418,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  6 ( 2 )\n",
      "[ 607,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 104,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  7 ( 1 )\n",
      "[  95,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 503,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  8 ( 2 )\n",
      "[ 598,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 125,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  9 ( 1 )\n",
      "[  65,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 473,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  10 ( 2 )\n",
      "[ 538,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 118,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  11 ( 1 )\n",
      "[ 246,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 420,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  12 ( 2 )\n",
      "[ 666,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 105,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  13 ( 1 )\n",
      "[  80,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 561,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  14 ( 2 )\n",
      "[ 641,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 140,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  15 ( 1 )\n",
      "[ 120,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 501,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  16 ( 2 )\n",
      "[ 621,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 125,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  17 ( 1 )\n",
      "[ 105,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 496,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  18 ( 2 )\n",
      "[ 601,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 124,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  19 ( 1 )\n",
      "[  60,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 477,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  20 ( 2 )\n",
      "[ 537,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 119,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  21 ( 1 )\n",
      "[  70,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 418,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  22 ( 2 )\n",
      "[ 488,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 104,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  23 ( 1 )\n",
      "[  89,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 384,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  24 ( 2 )\n",
      "[ 473,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[  96,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  25 ( 1 )\n",
      "[ 105,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 377,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  26 ( 2 )\n",
      "[ 482,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[  94,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  27 ( 1 )\n",
      "[  95,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 388,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  28 ( 2 )\n",
      "[ 483,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[  97,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  29 ( 1 )\n",
      "[ 101,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 386,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  30 ( 2 )\n",
      "[ 487,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[  96,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  31 ( 1 )\n",
      "[ 150,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 391,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  32 ( 2 )\n",
      "[ 541,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[  97,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  33 ( 1 )\n",
      "[  99,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 444,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  34 ( 2 )\n",
      "[ 543,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 111,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  35 ( 1 )\n",
      "[ 189,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 432,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  36 ( 2 )\n",
      "[ 621,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 108,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  37 ( 1 )\n",
      "[ 216,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 513,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  38 ( 2 )\n",
      "[ 729,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 128,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  39 ( 1 )\n",
      "[ 253,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 601,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  40 ( 2 )\n",
      "[ 854,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 150,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  41 ( 1 )\n",
      "[ 115,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 704,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  42 ( 2 )\n",
      "[ 819,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 176,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  43 ( 1 )\n",
      "[  22,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 643,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  44 ( 2 )\n",
      "[ 665,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 160,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  45 ( 1 )\n",
      "[ 120,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 505,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  46 ( 2 )\n",
      "[ 625,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 126,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  47 ( 1 )\n",
      "[ 103,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 499,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  48 ( 2 )\n",
      "[ 602,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 124,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  49 ( 1 )\n",
      "[  22,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 478,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  50 ( 2 )\n",
      "[ 500,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 119,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  51 ( 1 )\n",
      "[ 120,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 381,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  52 ( 2 )\n",
      "[ 501,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[  95,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  53 ( 1 )\n",
      "[ 103,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 406,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  54 ( 2 )\n",
      "[ 509,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 101,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  55 ( 1 )\n",
      "[ 230,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 408,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  56 ( 2 )\n",
      "[ 638,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 102,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  57 ( 1 )\n",
      "[  88,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 536,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  58 ( 2 )\n",
      "[ 624,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 134,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  59 ( 1 )\n",
      "[ 194,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 490,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  60 ( 2 )\n",
      "[ 684,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 122,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  61 ( 1 )\n",
      "[ 153,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 562,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  62 ( 2 )\n",
      "[ 715,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 140,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  63 ( 1 )\n",
      "[ 231,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 575,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  64 ( 2 )\n",
      "[ 806,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 143,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  65 ( 1 )\n",
      "[  43,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 663,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  66 ( 2 )\n",
      "[ 706,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 165,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  67 ( 1 )\n",
      "[ 177,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 541,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  68 ( 2 )\n",
      "[ 718,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 135,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  69 ( 1 )\n",
      "[ 150,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 583,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  70 ( 2 )\n",
      "[ 733,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 145,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  71 ( 1 )\n",
      "[  99,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 588,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  72 ( 2 )\n",
      "[ 687,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 147,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  73 ( 1 )\n",
      "[ 189,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 540,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  74 ( 2 )\n",
      "[ 729,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 135,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  75 ( 1 )\n",
      "[ 216,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 594,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  76 ( 2 )\n",
      "[ 810,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 148,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  77 ( 1 )\n",
      "[ 253,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 662,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  78 ( 2 )\n",
      "[ 915,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 165,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  79 ( 1 )\n",
      "[ 115,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 750,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  80 ( 2 )\n",
      "[ 865,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 187,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  81 ( 1 )\n",
      "[  22,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 678,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  82 ( 2 )\n",
      "[ 700,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 169,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  83 ( 1 )\n",
      "[  -1,    0,    0,    0]    [LWD , NOP , NOP , NOP ]    \n",
      "[ 531,    0,    0,    0]    [SSUB, NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [SWD , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  84 ( 2 )\n",
      "[ 530,    0,    0,    0]    [SADD, NOP , NOP , NOP ]    \n",
      "[ 132,    0,    0,    0]    [SRT , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [BNE , NOP , NOP , NOP ]    \n",
      "-------\n",
      "Instr =  85 ( 3 )\n",
      "[ 530,    0,    0,    0]    [EXIT, NOP , NOP , NOP ]    \n",
      "[ 132,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   0,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "[   1,    0,    0,    0]    [NOP , NOP , NOP , NOP ]    \n",
      "\n",
      "\n",
      "END\n"
     ]
    }
   ],
   "source": [
    "import sys\n",
    "sys.path.append(\"../src/\")\n",
    "from cgra import *\n",
    "\n",
    "kernel_name = \"pMean\"\n",
    "# Input data\n",
    "clear_memory(kernel_name)\n",
    "add_memory_region(kernel_name, 1000, [101,110,189,95,65,246,80,120,105,60,70,89,105,95,101,150,99,189,216,253,115,22,120,103,22,120,103,230,88,194,153,231,43,177,150,99,189,216,253,115,22,-1])\n",
    "# Set load and write addrs\n",
    "load_addrs = [1000, 0, 0, 0]\n",
    "store_addrs = [4, 0, 0, 0]\n",
    "run(kernel_name, limit=200, pr=[\"ROUT\",\"OPS\"], load_addrs=load_addrs, store_addrs=store_addrs)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.10"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
